package com.erp.order.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 卖家子订单延伸业务对象 erp_seller_child_order_extend
 *
 * @author erp
 * @date 2023-06-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerChildOrderExtendBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 外键
     */
    @NotNull(message = "外键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long childOrderId;

    /**
     * 是否已返运费;0-未返 1-已返 2-不需要返
     */
    @NotBlank(message = "是否已返运费;0-未返 1-已返 2-不需要返不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isReturnFreight;

    /**
     * 待返运费金额
     */
    @NotBlank(message = "待返运费金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private String returnFreight;

    /**
     * 问题件原因
     */
    @NotBlank(message = "问题件原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String specialCause;

    /**
     * 国内运单号
     */
    @NotBlank(message = "国内运单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String consignmentNo;

    /**
     * 采购凭证
     */
    @NotBlank(message = "采购凭证不能为空", groups = { AddGroup.class, EditGroup.class })
    private String proof;

    /**
     * 0-仓储发货 1-采购发货
     */
    @NotNull(message = "0-仓储发货 1-采购发货不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 仓储商品list
     */
    @NotBlank(message = "仓储商品list不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseIds;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;
    /**
     * 入库委托单号(IC)
     */
    private String inConsignNo;

}
